package com.wfy.modules.openInterface.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.wfy.common.persistence.DataEntity;

import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: wangxindong
 * Date: 2017/9/27
 * Time: 20:16
 */
public class SensorInfo extends DataEntity<SensorInfo> {

    // ================================================================
    // Constants
    // ================================================================

    private static final long serialVersionUID = 1L;

    // ================================================================
    // Fields
    // ================================================================

    @JSONField(name = "sensorCode")
    private String code;
    private String type;
    private String typeName;
    private String monitorPoint;

    private Object value;
    private String status;
    private String dataTime;

    @JSONField(serialize = false)
    private DeviceInfo deviceInfo;
    @JSONField(serialize = false)
    private BigDecimal minValue;
    @JSONField(serialize = false)
    private BigDecimal maxValue;
    @JSONField(serialize = false)
    private BigDecimal early;
    @JSONField(serialize = false)
    private BigDecimal warning;
    @JSONField(serialize = false)
    private BigDecimal howLong;


    // ================================================================
    // Constructors
    // ================================================================

    // ================================================================
    // Methods from/for super Interfaces or SuperClass
    // ================================================================

    @Override
    public String toString() {
        return "SensorInfo{" +
                "code='" + code + '\'' +
                ", deviceInfo=" + deviceInfo +
                ", monitorPoint='" + monitorPoint + '\'' +
                ", minValue=" + minValue +
                ", maxValue=" + maxValue +
                ", early=" + early +
                ", warning=" + warning +
                ", howLong=" + howLong +
                ", token='" + token + '\'' +
                ", remarks='" + remarks + '\'' +
                ", createBy=" + createBy +
                ", createDate=" + createDate +
                ", updateBy=" + updateBy +
                ", updateDate=" + updateDate +
                ", delFlag='" + delFlag + '\'' +
                ", id='" + id + '\'' +
                ", currentUser=" + currentUser +
                ", page=" + page +
                ", sqlMap=" + sqlMap +
                ", isNewRecord=" + isNewRecord +
                '}';
    }


    // ================================================================
    // Public or Protected Methods
    // ================================================================


    // ================================================================
    // Getter & Setter
    // ================================================================

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DeviceInfo getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(DeviceInfo deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getMonitorPoint() {
        return monitorPoint;
    }

    public void setMonitorPoint(String monitorPoint) {
        this.monitorPoint = monitorPoint;
    }

    public BigDecimal getMinValue() {
        return minValue;
    }

    public void setMinValue(BigDecimal minValue) {
        this.minValue = minValue;
    }

    public BigDecimal getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(BigDecimal maxValue) {
        this.maxValue = maxValue;
    }

    public BigDecimal getEarly() {
        return early;
    }

    public void setEarly(BigDecimal early) {
        this.early = early;
    }

    public BigDecimal getWarning() {
        return warning;
    }

    public void setWarning(BigDecimal warning) {
        this.warning = warning;
    }

    public BigDecimal getHowLong() {
        return howLong;
    }

    public void setHowLong(BigDecimal howLong) {
        this.howLong = howLong;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDataTime() {
        return dataTime;
    }

    public void setDataTime(String dataTime) {
        this.dataTime = dataTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    // ================================================================
    // Private Methods
    // ================================================================


    // ================================================================
    // Inner or Anonymous Class
    // ================================================================

    // ================================================================
    // Test Methods
    // ================================================================

}
